﻿using System.Collections.Generic;

namespace IOA.MES.Client.Models
{
    /// <summary>
    /// EL结果上传请求对象
    /// </summary>
    public class ElResultRequest
    {
        /// <summary>
        /// 组件号
        /// </summary>
        public string LotNumber { get; set; }

        /// <summary>
        /// 是否OK组件
        /// </summary>
        public bool IsOK { get; set; }

        /// <summary>
        /// 检测时间
        /// </summary>
        public string InspectTime { get; set; }

        /// <summary>
        /// EL检测结果
        /// </summary>
        public List<ELResultItem> ELTestResults { get; set; }

        /// <summary>
        /// EL图片本地存储路径（在EL电脑上的存储路径）
        /// </summary>
        public string ELImageFilePath { get; set; }

        /// <summary>
        /// VI检测结果
        /// </summary>
        public List<ELResultItem> VITestResults { get; set; }

        /// <summary>
        /// VI图片本地存储路径（在EL电脑上的存储路径）
        /// </summary>
        public string VIImageFilePath { get; set; }
    }

    public class ELResultItem
    {
        /// <summary>
        /// EL缺陷名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// EL缺陷位置，多个位置使用逗号分隔
        /// </summary>
        public string Position { get; set; }
    }
}
